/*
 * Copyright (c) 2015 DHC Corporation.
 */

package cn.com.dhc.danlu.widget.holder;

import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;

import cn.com.dhc.danlu.R;
import cn.com.dhc.danlu.widget.NoScrollListView;

/**
 * 订单（卖家）List用Holder
 *
 * @author MuWei
 * @version 1.00 2015/02/09 新建
 */
public class DeliverySellerHolder {

    /**
     * 选择复选框
     */
    public CheckBox chkSelected;

    /**
     * 订单编号文本框
     */
    public TextView txtOrderNo;

    /**
     * 订单状态文本框
     */
    public TextView txtOrderStatus;

    /**
     * 订单商品列表
     */
    public NoScrollListView lstDeliveryGoods;

    /**
     * 商品总数文本框
     */
    public TextView txtGoodsTotal;

    /**
     * 商品总价文本框
     */
    public TextView txtTotalMoney;

    /**
     * 接单按钮
     */
    public Button btnOrderReceive;

    /**
     * 配送完成按钮
     */
    public Button btnOrderDeliveryComplete;

    /**
     * 查看详情按钮
     */
    public Button btnOrderDetail;

    public DeliverySellerHolder(View convertView) {
        chkSelected = (CheckBox) convertView.findViewById(R.id.chkSelected);
        txtOrderNo = (TextView) convertView.findViewById(R.id.txtOrderNo);
        txtOrderStatus = (TextView) convertView.findViewById(R.id.txtOrderStatus);
        lstDeliveryGoods = (NoScrollListView) convertView.findViewById(R.id.lstDeliveryGoods);
        txtGoodsTotal = (TextView) convertView.findViewById(R.id.txtGoodsTotal);
        txtTotalMoney = (TextView) convertView.findViewById(R.id.txtTotalMoney);
        btnOrderReceive = (Button) convertView.findViewById(R.id.btnOrderReceive);
        btnOrderDeliveryComplete = (Button) convertView.findViewById(R.id.btnOrderDeliveryComplete);
        btnOrderDetail = (Button) convertView.findViewById(R.id.btnOrderDetail);
    }
}
